package Lesson;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;

public class CopyFileTest {
    public static void main(String[] args) {
        InputStream in = null;
        OutputStream out = null;

        try {
            in = new FileInputStream("唐霜玲文稿转写结果.txt");
            out = new FileOutputStream("111.txt");
            int len = 0;
            byte[] byteArray = new byte[1024];

            while ((len=in.read(byteArray))!=-1){
                out.write(byteArray,0,len);

            }

        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                out.close();
                in.close();
            }catch (Exception e){
                e.printStackTrace();
            }
        }



    }
}
